<script setup lang="ts">
/**
 * 适用于一次性返回所有内容的场景
 */
import { ref } from 'vue';
import Child from './Child.vue';

const key = ref(0);
</script>

<template>
    <div class="using" ref="using">
        <button @click="key++">Key++</button>
        <Child :key="key" />
    </div>
</template>
